package com.wq.babysecretary.model.impi;

import com.wq.babysecretary.model.BaBayMusicModel;
import com.wq.babysecretary.model.BaBayStoryModel;
import com.wq.babysecretary.model.IWebBookModel;

import java.util.List;

import io.reactivex.Observable;

/**
 * Created by admin on 2017/8/23.
 */

public class WebBookModelImpl implements IWebBookModel {

    public static WebBookModelImpl getInstance() {
        return new WebBookModelImpl();
    }
    /**
     * 儿童故事
     */
    @Override
    public  Observable<List<BaBayStoryModel>> getStdroy(String durChapterUrl) {
        return ContentStoryModelImpl.getInstance().analyBookcontent(durChapterUrl);
    }
    /**
     * 儿童歌曲
     */
    @Override
    public  Observable<List<BaBayMusicModel>> getMusic(String durChapterUrl) {
        return ContentStoryModelImpl.getInstance().analyMusic(durChapterUrl);
    }
}